package org.bonorsoft.modules.education.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.bonorsoft.modules.education.entity.Addressee;
import org.bonorsoft.modules.education.entity.Notice;
import org.bonorsoft.modules.education.vo.NoticeVo;

import java.util.Date;
import java.util.List;

/**
 * @Description: 收件人表
 * @Author: WilliamYe
 * @Date:   2021-06-22
 * @Version: V1.0
 */
public interface IAddresseeService extends IService<Addressee> {

    boolean add(String noticeId, String addresseeName);

    List<Addressee> getByNoticeId(String noticeId);

    List<Addressee> getYesByNotice(String noticeId);

    List<Addressee> getNoByNotice(String noticeId);

    List<Addressee> getSignByNoticeId(String noticeId);

    IPage<NoticeVo> paging(Page<NoticeVo> page, QueryWrapper<NoticeVo> queryWrapper);

    void removeByNoticeId(String id);

    Addressee getByName(String noticeId, String addresseeName);

    List<NoticeVo> mobileList(String mobile);

    List<NoticeVo> searchList(QueryWrapper<NoticeVo> queryWrapper, String keyWord, String startTime, String endTime);
}
